package day03;

public class OperDemo4 {
    public static void main (String[]args){
       int a = 5;
       a+=10;//相当于a=(int)(a+10)
        System.out.println(a);//15
        a/=2;//相当于a=(int)(a/2)
        System.out.println(a);//7
        a*= 3;//相当于a=(int)(a*3)
        System.out.println(a);//21


        //小面试题
        byte b = 5;
        //b = b+2;//编译错误，需强转，改为b=(byte)(b+2)

        b+=2;//相当于b=(byte)(b+2)

    };
}
